[Unit]
Description=Ars Magna daemon application

[Service]
WorkingDirectory=/var/www/magna-daemon
ExecStart=/var/www/magna-daemon/daemon
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=magna-daemon
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false

[Install]
WantedBy=multi-user.target
